package br.com.ordersys.framework.xml;

import java.io.InputStream;

import javax.xml.transform.stream.StreamSource;

public class UnmarshallTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {

			InputStream in = UnmarshallTest.class.getResourceAsStream("teste.xml");

			StreamSource is = new StreamSource(in);

			XML2ObjectUnmarshaller ou = new XML2ObjectUnmarshaller();

			Pojo o = (Pojo) ou.unmarshall(is, Pojo.class);
			
			System.out.println(o);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
